import apibase from "@/api/apiBase";
import axios from "axios";

//获取产品列表
export const $getProductList = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: 'travel/api/getProductList',
    data: params,
    instance,
  });
}

//获取产品详情
export const $getProductDetail = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: 'travel/api/getProductDetail',
    data: params,
    instance,
  });
}

//选择计划获取产品详情
export const $getProductListDetail = (params: any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/api/getProductListDetail',
    data: params,
    instance,
  });
}